// Top header styles

#nav-icon {
		display: none;
}

#header {
	width: 100%;
	height: $header-height; // 70px
	background-color: #fff;
	position: fixed;
	z-index: 100;
	border-bottom: 1px solid $border-color;

	.wrapper {
		height: inherit;
		width: 100%;
		padding: 0 15px;
	    display: flex;
	    position: relative;
	    align-content: center;
	    align-items: center;
	    justify-content: space-between;
	}

	.site-title {
		display: flex;
		height: initial;

		svg {
	    height: 33px;
		}
	}

	nav[role=navigation] {
		float: right;
	}

	ul.nav-links {
		line-height: $header-height;
		margin: 0;
		height: $header-height;

		li {
			display: inline-block;
			height: inherit;
			margin: 0 10px;
			transition: all .2s ease-out;

			&:hover{
				border-bottom: 2px solid $dark-green;
			}

		}

      .nav-btn {
      	transition: all .2s ease-out;
        color: white;

        &:hover {
        	@include dropshadow;
        }
      }

		li:last-child {
		margin-right: 0;
		border: none;
		}
	}

	a {
        color: $accent-green;
        transition: color .2s ease-out;

        &:hover {
        	color: $dark-green;
        }
	}

	.selected {
		border-bottom: 2px solid $accent-green;
	}

  @include media-query($on-palm) {

		a {
			padding: 20px;
		}

		#nav-icon {
			display: block;
		}

		ul.nav-links li:hover{
			border: none;
		}



		.selected {
			border: none;

			&:hover {
				border: none;
			}
		}

		div nav {
			height: 0;
			overflow: hidden;
			float: none;
		    margin-top: -6px;
		    transition: all 0.3s ease;
		    background-color: white;
		    width: 100%;
		    position: absolute;
		    right: 0;
			top: 70px;
		    border-radius: 3px;
		    -webkitl-box-shadow: 0px 6px 23px 0px rgba(216,226,232,1);
			-moz-box-shadow: 0px 6px 23px 0px rgba(216,226,232,1);
			box-shadow: 0px 6px 23px 0px rgba(216,226,232,1);
		}

		ul.nav-links {
			height: fit-content;
			padding: 25px 15px 30px;
			li {
				display: block;
				padding: 0;
			}
		}

		.nav-links > li {
			display: block;
			text-align: right;
			padding: 10px 0;
			text-align: center;
		}
	}
} // -- end of header


// Hamburger button

#nav-icon {
  width: 35px;
  height: 35px;
  position: relative;
  top: 5px;
  float: right;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #4e4e4e;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
}

#nav-icon span:nth-child(2),#nav-icon span:nth-child(3) {
  top: 10px;
}

#nav-icon span:nth-child(4) {
  top: 21px;
}

#nav-icon.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#nav-icon.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}
